package Presentacion;

import AccesoDatos.Comando;
import AccesoDatos.Conexion;
import LogicaNegocio.Cliente;
import java.sql.ResultSet;
import java.util.Vector;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author REYES
 */
public class frmAdminCliente extends javax.swing.JInternalFrame {
    Conexion conexion;
    Vector <Cliente> vClientes = new Vector <Cliente>();
    
    public frmAdminCliente(Conexion Pconexion) {
        conexion = Pconexion;
        initComponents();
        cargarClientes();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lbCliente = new javax.swing.JLabel();
        cbCliente = new javax.swing.JComboBox();
        jPanel1 = new javax.swing.JPanel();
        lbCedJuridica = new javax.swing.JLabel();
        txtCedulaJuridica = new javax.swing.JTextField();
        lbTelefono = new javax.swing.JLabel();
        txtTelefono = new javax.swing.JTextField();
        lbNombreEmpresa = new javax.swing.JLabel();
        txtNombreEmpresa = new javax.swing.JTextField();
        lbNombreEncargado = new javax.swing.JLabel();
        txtNombreEncargado = new javax.swing.JTextField();
        lbDireccion = new javax.swing.JLabel();
        txtDireccion = new javax.swing.JTextField();
        lbFax = new javax.swing.JLabel();
        txtFax = new javax.swing.JTextField();
        lbEmail = new javax.swing.JLabel();
        txtEmail = new javax.swing.JTextField();
        btnGuardar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        btnEliminar = new javax.swing.JButton();

        setClosable(true);
        setTitle("Gestión de Clientes");

        lbCliente.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbCliente.setText("Cliente");

        cbCliente.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        cbCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbClienteActionPerformed(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del Cliente", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 14))); // NOI18N
        jPanel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

        lbCedJuridica.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbCedJuridica.setText("Cédula Jurídica");
        lbCedJuridica.setToolTipText("");

        txtCedulaJuridica.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtCedulaJuridica.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lbTelefono.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbTelefono.setText("Teléfono");

        txtTelefono.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtTelefono.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lbNombreEmpresa.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbNombreEmpresa.setText("Nombre de la empresa");

        txtNombreEmpresa.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtNombreEmpresa.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lbNombreEncargado.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbNombreEncargado.setText("Nombre del encargado");

        txtNombreEncargado.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtNombreEncargado.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lbDireccion.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbDireccion.setText("Dirección");

        txtDireccion.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtDireccion.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtDireccion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtDireccionActionPerformed(evt);
            }
        });

        lbFax.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbFax.setText("Fax");

        txtFax.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtFax.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtFax.setToolTipText("");
        txtFax.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFaxActionPerformed(evt);
            }
        });

        lbEmail.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        lbEmail.setText("E-mail");

        txtEmail.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        txtEmail.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbNombreEmpresa)
                            .addComponent(lbNombreEncargado)
                            .addComponent(lbDireccion)
                            .addComponent(lbFax)
                            .addComponent(lbEmail))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtDireccion)
                            .addComponent(txtNombreEncargado)
                            .addComponent(txtFax)
                            .addComponent(txtEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)
                            .addComponent(txtNombreEmpresa)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lbCedJuridica)
                        .addGap(67, 67, 67)
                        .addComponent(txtCedulaJuridica))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lbTelefono)
                        .addGap(105, 105, 105)
                        .addComponent(txtTelefono)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbCedJuridica)
                    .addComponent(txtCedulaJuridica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNombreEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbNombreEmpresa))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtNombreEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbNombreEncargado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbTelefono)
                    .addComponent(txtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbDireccion)
                    .addComponent(txtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtFax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbFax))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbEmail))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnGuardar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/src/imagenes/btn_guardar.png"))); // NOI18N
        btnGuardar.setText("Guardar");
        btnGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarActionPerformed(evt);
            }
        });

        btnCancelar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/src/imagenes/btn_cancelar.png"))); // NOI18N
        btnCancelar.setText("Cancelar");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        btnEliminar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        btnEliminar.setText("Eliminar");
        btnEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(lbCliente)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(btnEliminar)))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnGuardar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnCancelar)
                        .addGap(38, 38, 38))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lbCliente)
                        .addComponent(cbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(41, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txtDireccionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDireccionActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtDireccionActionPerformed

    private void txtFaxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFaxActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtFaxActionPerformed
    private void cargarClientes(){
            vClientes.clear();
    try{
            DefaultComboBoxModel modeloCombo = new DefaultComboBoxModel();
            btnEliminar.setVisible(false); // Ocultamos el boton eliminar al principio
            int i = 1;            
            Cliente cliente1 = new Cliente(); //Creamos un cliente con los atributos vacios, para la posicion 1 del ComboBox(Agregar nuevo)
            vClientes.add(0, cliente1);       // Agregamos el cliente en la primera posicion
            modeloCombo.addElement("Agregar nuevo...");
            Comando comando = new Comando("select * from tb_cliente");
            ResultSet rs = comando.ejecutarSQL(conexion); 
            while (rs.next())
            {
              Cliente cliente = new Cliente();
              vClientes.add(i, cliente);
              vClientes.elementAt(i).setId_Cliente(rs.getInt("Id_Cliente"));
              vClientes.elementAt(i).setCedula_Juridica(rs.getString("Cedula_Juridica"));
              vClientes.elementAt(i).setNombre_Empresa(rs.getString("Nombre_Empresa"));
              vClientes.elementAt(i).setNombre_Encargado(rs.getString("Nombre_Encargado"));
              vClientes.elementAt(i).setTelefono(rs.getString("Telefono"));
              vClientes.elementAt(i).setDireccion(rs.getString("Direccion"));
              vClientes.elementAt(i).setFax(rs.getString("Fax"));
              vClientes.elementAt(i).setEmail(rs.getString("Email"));
              modeloCombo.addElement(rs.getString("Nombre_Empresa"));
              i++;
            }
            cbCliente.setModel(modeloCombo);
        }catch(Exception ex){
            JOptionPane.showMessageDialog(null, ex.getMessage(), null, JOptionPane.ERROR_MESSAGE);
        }
    
    }
    private void limpiarTexto(){
    
                txtCedulaJuridica.setText("");
                txtNombreEmpresa.setText("");
                txtNombreEncargado.setText("");
                txtTelefono.setText("");
                txtDireccion.setText("");
                txtFax.setText("");
                txtEmail.setText("");
    
    }
    private void cbClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbClienteActionPerformed
            if(cbCliente.getSelectedIndex()==0){
                
                btnGuardar.setText("Guardar");
                btnEliminar.setVisible(false);
                limpiarTexto();     
            }else{
                btnGuardar.setText("Modificar");
                btnEliminar.setVisible(true);
                txtCedulaJuridica.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getCedula_Juridica());
                txtNombreEmpresa.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getNombre_Empresa());
                txtNombreEncargado.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getNombre_Encargado());
                txtTelefono.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getTelefono());
                txtDireccion.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getDireccion());
                txtFax.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getFax());
                txtEmail.setText(vClientes.elementAt(cbCliente.getSelectedIndex()).getEmail());

            }

    }//GEN-LAST:event_cbClienteActionPerformed

    private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed
        if(cbCliente.getSelectedIndex()==0){
            try{
                Comando comando = new Comando();
                comando.setConsulta("INSERT INTO `sicgsadb`.`tb_cliente` (`Cedula_Juridica`, `Nombre_Empresa`, `Nombre_Encargado`, `Telefono`, `Direccion`, `Fax`, `Email`) VALUES ('"+ txtCedulaJuridica.getText() +"', '"+ txtNombreEmpresa.getText() +"', '"+ txtNombreEncargado.getText() +"', '"+ txtTelefono.getText() +"', '"+ txtDireccion.getText() +"', '"+ txtFax.getText() +"', '"+ txtEmail.getText() +"')");
                if(comando.updateSQL(conexion)){
                    JOptionPane.showMessageDialog(this, "El cliente se ingresó exitosamente", "Información", JOptionPane.INFORMATION_MESSAGE);
                    limpiarTexto();
                    cargarClientes();
                }
                                             
            }catch(Exception ex){
                JOptionPane.showMessageDialog(null, ex.getMessage(), null, JOptionPane.ERROR_MESSAGE);
                //System.out.println(ex.getMessage());
            }
        }else{
              try{
                Comando comando = new Comando();
                int indiceAnt = cbCliente.getSelectedIndex(); // Guardamos el indice actual en una variable
                int idCliente = vClientes.get(cbCliente.getSelectedIndex()).getId_Cliente();
                comando.setConsulta("UPDATE `sicgsadb`.`tb_cliente` SET `Cedula_Juridica`='"+ txtCedulaJuridica.getText() +"', `Nombre_Empresa`='"+ txtNombreEmpresa.getText() +"', `Nombre_Encargado`='"+ txtNombreEncargado.getText() +"', `Telefono`='"+ txtTelefono.getText() +"', `Direccion`='"+ txtDireccion.getText() +"', `Fax`='"+ txtFax.getText() +"', `Email`='"+ txtEmail.getText() +"' WHERE `Id_Cliente`='"+ idCliente +"'");
                if(comando.updateSQL(conexion)){
                    JOptionPane.showMessageDialog(this, "El cliente se modificó exitosamente", "Información", JOptionPane.INFORMATION_MESSAGE);
                    cargarClientes();
                    cbCliente.setSelectedIndex(indiceAnt); // Despues de cargarClientes() el cb se ubica en el idice 0, por lo que con esta linea lo volvemos a colocar en el indice anterior
                }
                                             
            }catch(Exception ex){
                JOptionPane.showMessageDialog(null, ex.getMessage(), null, JOptionPane.ERROR_MESSAGE);
                //System.out.println(ex.getMessage());
            }
        }
    }//GEN-LAST:event_btnGuardarActionPerformed

    private void btnEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarActionPerformed
            int i =JOptionPane.showConfirmDialog(this,"¿Realmente desea Eliminar el cliente?","Confirmar Salida",JOptionPane.YES_NO_OPTION);
         if(i==0){// Si el usuario selecciona la opcion "Si", se procede a eliminar el empleado de la base de datos
                try{
                    Comando comando = new Comando();
                    int idCliente = vClientes.get(cbCliente.getSelectedIndex()).getId_Cliente();
                    comando.setConsulta("DELETE FROM `sicgsadb`.`tb_cliente` WHERE `Id_Cliente`='"+ idCliente +"'");
                    if(comando.updateSQL(conexion)){ 
                        JOptionPane.showMessageDialog(this, "El cliente se eliminó exitosamente", "Información", JOptionPane.INFORMATION_MESSAGE);
                        limpiarTexto();
                        cbCliente.setSelectedIndex(0);
                        cargarClientes();
                    }

                }catch(Exception ex){
                    JOptionPane.showMessageDialog(null, ex.getMessage(), null, JOptionPane.ERROR_MESSAGE);
                    //System.out.println(ex.getMessage());
                }
        }
    }//GEN-LAST:event_btnEliminarActionPerformed

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
         int i =JOptionPane.showConfirmDialog(this,"¿Realmente desea Salir?","Confirmar Salida",JOptionPane.YES_NO_OPTION);
        if(i==0){ // Si el usuario selecciona la opcion "Si", se sale del from actual y vuelve a la pantalla anterior
            this.dispose(); 
        }
    }//GEN-LAST:event_btnCancelarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnEliminar;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JComboBox cbCliente;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lbCedJuridica;
    private javax.swing.JLabel lbCliente;
    private javax.swing.JLabel lbDireccion;
    private javax.swing.JLabel lbEmail;
    private javax.swing.JLabel lbFax;
    private javax.swing.JLabel lbNombreEmpresa;
    private javax.swing.JLabel lbNombreEncargado;
    private javax.swing.JLabel lbTelefono;
    private javax.swing.JTextField txtCedulaJuridica;
    private javax.swing.JTextField txtDireccion;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtFax;
    private javax.swing.JTextField txtNombreEmpresa;
    private javax.swing.JTextField txtNombreEncargado;
    private javax.swing.JTextField txtTelefono;
    // End of variables declaration//GEN-END:variables
}
